export const routes = [
    {
        path: '/login',
        name: 'login',
        component: () => import('../components/Login.vue')
    },
    {
        path: '/error',
        name: 'error',
        component: () => import('@/components/404.vue')
    },
    {
        path: '/',
        name: 'main',
        component: () => import('../layout/Main.vue'),
        redirect: '/login',
        children: [
            {
                path: 'equipmentManagement',
                name: 'equipmentManagement',
                meta: { title: '设备管理' },
                component: () => import('../views/Management/Index.vue')
            },
            {
                path: 'Benefit',
                name: 'Benefit',
                meta: { title: '效益分析表格' },
                component: () => import('../views/Benefit/Benefit.vue')
            },
            {
                path: 'BenefitEchart',
                name: 'BenefitEchart',
                meta: { title: '效益分析图表' },
                component: () => import('../views/Benefit/BenefitEchart.vue')
            },
            {
                path: 'BenefitEchart2',
                name: 'BenefitEchart2',
                meta: { title: '效益分析图表2' },
                component: () => import('../views/Benefit/BenefitEchart2.vue')
            },
            {
                path: 'system',
                name: 'system',
                meta: { title: '系统设置' },
                component: () => import('../views/system/System.vue')
            },
            {
                path: 'test',
                name: 'test',
                meta: { title: '测试' },
                component: () => import('../views/test/test.vue')
            }
        ]
    }
]

